import path from "path";
export const PORT = 5009;
export const VideoExt = [
    ".avi",
    ".rmvb",
    ".rm",
    ".asf",
    ".divx",
    ".mpg",
    ".mpeg",
    ".mpe",
    ".wmv",
    ".mp4",
    ".mkv",
    ".vob",
    ".ts",
    ".flv",
    ".mov",
    ".webm",
];
export const ImgExt = [".bmp", ".jpg", ".jpeg", ".png", ".gif", ".svg"];
export const screenshotPath = path.resolve(__dirname, "../../static/screenshot/");
// 静态资源存放路径
export const staticPath = path.resolve(__dirname, "../../../../");
export const staticPathName = staticPath.replace(path.resolve(staticPath, "../"), "");
// 缩略图大小限制
export const ThumbnailSizeLimit = 2048;
export const WhiteList = ["null", "http://localhost:5173", "http://10.12.181.30:5173", "http://192.168.1.7:5174"];

export enum CODE {
    successCode = 1,
    errorCode = 0,
    serverException = 500, // 服务器异常
    needLogin = -1, //需要登录
    noPermission = -2, // 无权登录
    needCaptcha = -3, // 需要验证码
}
